package com.bootdo.system.service;

import java.util.List;
import java.util.Map;

import com.bootdo.common.utils.Query;
import com.bootdo.system.domain.TbOrder;
import com.bootdo.system.domain.TbViporder;

public interface OrderService {
	
	List<TbOrder> list(Map<String, Object> map);
	
	List<TbOrder> list2(Map<String, Object> map);
	
	int count2(Map<String, Object> map);
	int count3(Map<String, Object> map);
	
	List<TbOrder> listx(String openId);
	
	TbOrder list2Ceshi(String oid);

	
	List<TbOrder> listx2(String openId);
	
	Map<String, Object> listx5(String openId);

	
	List<TbOrder> listx2djs(String openId);
	
	int count(Map<String, Object> map);
	
	int insert2update(TbOrder table);
	
	int insert2updateSvip(TbViporder table);

	int remove(Integer id);

	int batchremove(Integer[] ids);

	TbOrder getById(Integer id);
	
	TbOrder getByIdOid(String id,String openId);
	
	List<TbOrder> getByIdOid2(String id);

	TbViporder getByOrdId(String id);

	List<TbViporder> listKm(Query query);

	int countKm(Query query);

	int removeKm(Integer id);

	int batchremoveKm(Integer[] ids);
	
	String getDirect2Order(Integer userId,String paytime);
	
	String getDirect2VipOrder(Integer userId,String paytime);

	String getProfit2Order(Integer userId, String paytime);
	
	String getProfit2Order2(Integer userId, String paytime);
	
	String getProfit2Order3(String openId, String paytime);

	int getDirect2OrderNum(Integer userId, String paytime);
	
	int getDirect2OrderNum2(String openId, String paytime);
	
	int getDirect2VipOrderNum(Integer intValue, String format2);
	int getDirect2VipOrderNum2(String openId, String format2);
	List<Map<String, Object>> list5(Map<String, Object> map);

	int count5(Map<String, Object> map);
	
	List<Map<String, Object>> list6(Map<String, Object> map);

	int count6(Map<String, Object> map);
}
